package br.edu.unilasalle.simon_api.rs;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.beans.factory.annotation.Autowired;

import br.edu.unilasalle.simon_api.domain.Estado;
import br.edu.unilasalle.simon_api.service.IEstadoService;

@Path("/estado")
public class EstadoRS {
	
	@Autowired
	private IEstadoService service;
	
	@GET
    @Produces(MediaType.APPLICATION_JSON)
    public List<Estado> findAll() {
		return service.findAll();
    }

}
